package com.smartwebx.ha.dal.usebean;

import java.io.Serializable;

import org.apache.commons.lang3.StringUtils;

import com.smartwebx.ha.dal.usebean.abstr.AbstractStation;
import com.smartwebx.ha.dal.usebean.abstr.AbstractValue;

/**
 * 基础数据类
 * 
 * @author XX
 * 
 */
public class GisBase implements Serializable, AbstractStation, AbstractValue {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String stcd;// 站码
	private String stnm;// 名字
	private String sttp;// 站类
	private String lgtd;// 经度
	private String lttd;// 纬度
	private String frgrd;// 等级
	private String inProv;// 省内省外
	private Double val; // 值
	private Double warValue;// 警戒值

	public GisBase() {
	}

	public GisBase(GisBase gb) {
		this.lgtd = gb.getLgtd();
		this.lttd = gb.getLttd();
		this.stnm = gb.getStnm();
		this.stcd = gb.getStcd();
		this.sttp = gb.getSttp();
		this.frgrd = gb.getFrgrd();
		this.inProv = gb.getInProv();
	}

	public String getLgtd() {
		return lgtd;
	}

	public void setLgtd(String lgtd) {
		this.lgtd = StringUtils.trim(lgtd);
	}

	public String getLttd() {
		return lttd;
	}

	public void setLttd(String lttd) {
		this.lttd = StringUtils.trim(lttd);
	}

	public String getStnm() {
		return stnm;
	}

	public void setStnm(String stnm) {
		this.stnm = StringUtils.trim(stnm);
	}

	public String getStcd() {
		return stcd;
	}

	public void setStcd(String stcd) {
		this.stcd = StringUtils.trim(stcd);
	}

	public String getSttp() {
		return sttp;
	}

	public void setSttp(String sttp) {
		this.sttp = StringUtils.trim(sttp);
	}

	public String getFrgrd() {
		return frgrd;
	}

	public void setFrgrd(String frgrd) {
		this.frgrd = StringUtils.trim(frgrd);
	}

	public String getInProv() {
		return inProv;
	}

	public void setInProv(String inProv) {
		this.inProv = StringUtils.trim(inProv);
		/*if (Strings.isNullOrEmpty(inProv)) {
			this.inProv = null;
		} else {
			this.inProv = inProv.startsWith("32") ? 1 : 0;
		}*/
	}

	public Double getVal() {
		return val;
	}

	public void setVal(Double val) {
		this.val = val;
	}

	public Double getWarValue() {
		return warValue;
	}

	public void setWarValue(Double warValue) {
		this.warValue = warValue;
	}

}
